<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>

    <!-- Head Start-->
	<div class="unit position-header">

		<div class="columns">
			<div class="container">
				<div class="column">
					<div class="container">
						<!-- column 1 -->
					</div>
				</div>
				<div class="column">
					<div class="container">
						<!-- column 2 -->
					</div>
				</div>
				<div class="column">
					<div class="container">
	      <form id="searchForm" name="searchForm" action="/beta/mapIndex.action" method="post">
	      <input type="hidden" name="lon" value="" id="searchForm_lon"/>
		  <input type="hidden" name="lat" value="" id="searchForm_lat"/>
		  <input type="hidden" name="zoom" value="" id="searchForm_zoom"/>
		  <input type="hidden" name="page" value="0" id="searchForm_page"/>
		  <input type="hidden" name="leftBounds" value="" id="searchForm_leftBounds"/>

		  <input type="hidden" name="rightBounds" value="" id="searchForm_rightBounds"/>
		  <input type="hidden" name="topBounds" value="" id="searchForm_topBounds"/>
		  <input type="hidden" name="bottomBounds" value="" id="searchForm_bottomBounds"/>
		  <input type="hidden" name="jobCategoryBig" value="0" id="searchForm_jobCategoryBig"/>
		  <input type="hidden" name="jobCategoryMedium" value="0" id="searchForm_jobCategoryMedium"/>
		  <input type="hidden" name="goodsCategoryBig" value="0" id="searchForm_goodsCategoryBig"/>
		  <input type="hidden" name="goodsCategoryMedium" value="0" id="searchForm_goodsCategoryMedium"/>
		  <input type="hidden" name="roomType" value="0" id="searchForm_roomType"/>
		  <input type="hidden" name="roomDepositMoney" value="0" id="searchForm_roomDepositMoney"/>

		  <input type="hidden" name="roomMonthlyRentMoney" value="0" id="searchForm_roomMonthlyRentMoney"/>
		  <input type="hidden" name="searchMode" value="home" id="searchMode"/>
	      <div class="map_search">
	        <span class="search_input"><input type="text" name="searchText" value="" id="searchForm_searchText" class="search_input_box"/></span>
	        <span class="search_submit"><input type="submit" id="searchForm_0" value="" class="search_input_btn"/></span>
	      </div>
	      </form>
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 4 -->
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 5 -->
					<!-- 권한에 따라 페이지에서 보여주는 것을 달리하기 위해 authorize 태그를 사용할 수 있다. -->
					<sec:authorize ifNotGranted="ROLE_USER">
						<a id="umanji_login" href="" title="로그인">[로그인]</a>
						<a id="umanji_new_member" href="" title="회원 가입">[회원 가입]</a>
					</sec:authorize>
					<sec:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
						<b><sec:authentication property="principal.username"/></b>님 반갑습니다.
						<a href="<c:url value="/logout"/>" title="로그아웃">[로그아웃]</a>
					</sec:authorize>
					</div>
				</div>
			</div>
		</div>
		<div class="columns">
			<div class="container">
				<div class="column">
					<div class="container">
					<!-- column 1 -->1
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 2 -->2
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 3 -->3
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 4 -->4
					</div>
				</div>
				<div class="column">
					<div class="container">
					<!-- column 5 -->5
					</div>
				</div>
			</div>
		</div>

	</div>



    <!-- Head End-->
